﻿using System.Collections.Generic;

namespace Compiler.Helpers.SemanticAnalyze
{
    public class Function : UniqueObject
    {
        public Function()
        {}

        public Function(string id, LanguageTypes type)
            :base(id)
        {
            Type = type;
        }
        
        public Function(string id, LanguageTypes type, IEnumerable<Variable> arguments)
            :this(id, type)
        {
            Arguments = arguments;
        }

        public LanguageTypes Type { get; private set; }

        public IEnumerable<Variable> Arguments { get; private set; } 
    }
}
